#include "Account.h"

Account::Account()
{
}

Account::~Account()
{
}

Account::Account(const std::string& newUsername, const std::string& newPassword): username(newUsername), password(newPassword)
{
}

Account::Account(const Account& rhs): username(rhs.username), password(rhs.password)
{
}

void Account::SetUsername(const std::string& newUsername)
{
	username = newUsername;
}

void Account::SetPassword(const std::string& newPassword)
{
	password = newPassword;
}

const std::string& Account::Username() const
{ 
	return username;
}

const std::string& Account::Password() const
{
	return password;
}

void Account::Clear()
{
	username.clear();
	password.clear();
}

bool Account::IsEmpty()
{
	return username.length() == 0;
}

Account& Account::operator=(const Account& rhs)
{
	username = rhs.username;
	password = rhs.password;

	return *this;
}


